package com.jadcon.bedbreakfast.domain;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("Suite Service")
public class SuiteServiceImpl implements SuiteService {

	@Autowired()
	private SuiteRepository suiteRepository;

	
	public Suite getNumber(int number) {
		return suiteRepository.getNumber(number);
	}

	public List<Suite> getSuiteList() {
		return suiteRepository.getSuiteList();
	}

	
	public Suite getName(String name) {
			return suiteRepository.getName(name);
	}

	public Suite getImageName(String imageName) {
			return suiteRepository.getImageName(imageName);
	}

	public Suite getSuiteByNumber(int number) {
			Suite suite = new Suite();
			suite = suiteRepository.getSuiteByNumber(number);
			return suite;
	}
	public void setSuiteRepository(SuiteRepository suiteRepository) {
		this.suiteRepository = suiteRepository;
	}

}
